package mh.map.render;


/**
 * Declares what a drawable object should behave.
 * 
 * @author Gianmarco Laggia
 * @author Alberto D'Este
 * 
 */
public interface IDrawable {
	/**
	 * Draw the texture in the render, according to the params passed in ent.<br>
	 * If the param <code>foreground</code> is true then the part drawed is the upper part, otherwise is the lower part.
	 * 
	 * @param ent
	 *            The entity where to read all the parameters
	 * @param delta
	 *            Time passed since last tick
	 * @param posX
	 *            X position where to draw the part of texture
	 * @param posY
	 *            Y position where to draw the part of texture
	 * @param foreground
	 *            If the part to draw is the upper or lower
	 */
	public void draw(long delta, double posX, double posY, boolean foreground);

}
